<?php
	require_once("../database/nodes.php");
	require_once("../database/hierarchies.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<title>Root nodes</title>
	</head>
	<body>
		<h1>Root nodes</h1>
		<ul>
			<li>
				<form name="down_to_son" id="down_to_son" action="down_to.php" method="post">
					<label for="id">Down to </label>
					<select name="id" id="id">
						<?php
							printRootNodesAsOptions();
						?>					
					</select>
					<input type="submit" value="Go">
				</form>
			</li>
			<li><a href="new.php">Create new node</a></li>
		</ul>
	</body>
</html>
